﻿<?php
/**
* @file Avatar.php
* Copyright (c) Friends Group. All rights reserved.
* $Id$
*
*/

require_once(realpath(dirname(__FILE__)) . '/../classes/BaseObject.php');

class Avatar extends BaseObject 
{

    /**
     * @AttributeType int
     */
    protected $ID;

    /**
     * @AttributeType int
     * Kiểu kích thước: 1: small, 2: medium, 3: large
     */
    protected $size;

    /**
     * @AttributeType String
     * Tên avatar
     */
    protected $picture;

    public function __construct($picture = "", $size = 1)
    {
        $this -> picture = $picture;
        $this -> size = $size;
    }
    
    /**
     * @ParamType iD int
     */
    public function setID($ID) 
    {
        $this->ID = $ID;
    }

    /**
     * @ReturnType int
     */
    public function getID() 
    {
        return $this->ID;
    }

    /**
     * @ParamType size int
     */
    public function setSize($size) 
    {
        $this->size = $size;
    }

    /**
     * @ReturnType int
     */
    public function getSize() 
    {
        return $this->size;
    }

    /**
     * @ParamType picture String
     */
    public function setPicture($picture) 
    {
        $this->picture = $picture;
    }

    /**
     * @ReturnType String
     */
    public function getPicture() 
    {
        return $this->picture;
    }
}
?>